// --------------------------------------------------------------------------------------------
// Version: MPL 1.1/GPL 2.0/LGPL 2.1
// 
// The contents of this file are subject to the Mozilla Public License Version
// 1.1 (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
// http://www.mozilla.org/MPL/
// 
// Software distributed under the License is distributed on an "AS IS" basis,
// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
// for the specific language governing rights and limitations under the
// License.
// 
// <remarks>
// Generated by IDLImporter from file ISimpleDOMNode.idl
// 
// You should use these interfaces when you access the COM objects defined in the mentioned
// IDL/IDH file.
// </remarks>
// --------------------------------------------------------------------------------------------
namespace Gecko
{
	using System;
	using System.Runtime.InteropServices;
	using System.Runtime.InteropServices.ComTypes;
	using System.Runtime.CompilerServices;
	
	
	/// <summary>
    ///This Source Code Form is subject to the terms of the Mozilla Public
    /// License, v. 2.0. If a copy of the MPL was not distributed with this
    /// file, You can obtain one at http://mozilla.org/MPL/2.0/. </summary>
	[ComImport()]
	[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
	[Guid("1814ceeb-49e2-407f-af99-fa755a7d2607")]
	public interface ISimpleDOMNode
	{
		
		/// <summary>
        /// In Win32 accessible events we generate, the target's childID matches to this
        /// </summary>
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
		ushort get_NodeInfo([MarshalAs(UnmanagedType.BStr)] ref string nodeName, ref short nameSpaceID, [MarshalAs(UnmanagedType.BStr)] ref string nodeValue, ref uint numChildren, ref uint uniqueID);
		
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
		ushort get_Attributes(ushort maxAttribs, [MarshalAs(UnmanagedType.BStr, SizeParamIndex=0)] ref string attribNames, ref short nameSpaceID, [MarshalAs(UnmanagedType.BStr, SizeParamIndex=0)] ref string attribValues);
		
		[return: MarshalAs(UnmanagedType.BStr, SizeParamIndex=0)]
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
		string get_AttributesForNames(ushort numAttribs, [MarshalAs(UnmanagedType.BStr, SizeParamIndex=0)] string attribNames, short nameSpaceID);
		
		/// <summary>
        /// If TRUE, returns properites for media as set in nsIDOMDocument::set_alternateViewMediaTypes
        /// </summary>
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
		ushort get_ComputedStyle(ushort maxStyleProperties, [MarshalAs(UnmanagedType.U1)] bool useAlternateView, [MarshalAs(UnmanagedType.BStr, SizeParamIndex=0)] ref string styleProperties, [MarshalAs(UnmanagedType.BStr, SizeParamIndex=0)] ref string styleValues);
		
		/// <summary>
        /// If TRUE, returns properites for media as set in nsIDOMDocument::set_alternateViewMediaTypes
        /// </summary>
		[return: MarshalAs(UnmanagedType.BStr, SizeParamIndex=0)]
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
		string get_ComputedStyleForProperties(ushort numStyleProperties, [MarshalAs(UnmanagedType.U1)] bool useAlternateView, [MarshalAs(UnmanagedType.BStr, SizeParamIndex=0)] string styleProperties);
		
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
		uint ScrollTo([MarshalAs(UnmanagedType.U1)] bool placeTopLeft);
		
		ISimpleDOMNode ParentNode
		{
			[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
			[return: MarshalAs(UnmanagedType.Interface)]
			get;
		}
		
		ISimpleDOMNode FirstChild
		{
			[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
			[return: MarshalAs(UnmanagedType.Interface)]
			get;
		}
		
		ISimpleDOMNode LastChild
		{
			[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
			[return: MarshalAs(UnmanagedType.Interface)]
			get;
		}
		
		ISimpleDOMNode PreviousSibling
		{
			[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
			[return: MarshalAs(UnmanagedType.Interface)]
			get;
		}
		
		ISimpleDOMNode NextSibling
		{
			[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
			[return: MarshalAs(UnmanagedType.Interface)]
			get;
		}
		
		[return: MarshalAs(UnmanagedType.Interface)]
		[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
		ISimpleDOMNode get_ChildAt(uint childIndex);
		
		string InnerHTML
		{
			[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
			[return: MarshalAs(UnmanagedType.BStr)]
			get;
		}
		
		System.IntPtr LocalInterface
		{
			[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
			get;
		}
		
		string Language
		{
			[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
			[return: MarshalAs(UnmanagedType.BStr)]
			get;
		}
	}
	
	/// <summary>ISimpleDOMNodeConsts </summary>
	public class ISimpleDOMNodeConsts
	{
		
		// <summary>
        //This Source Code Form is subject to the terms of the Mozilla Public
        // License, v. 2.0. If a copy of the MPL was not distributed with this
        // file, You can obtain one at http://mozilla.org/MPL/2.0/. </summary>
		public const ushort NODETYPE_ELEMENT = 1;
		
		// 
		public const ushort NODETYPE_ATTRIBUTE = 2;
		
		// 
		public const ushort NODETYPE_TEXT = 3;
		
		// 
		public const ushort NODETYPE_CDATA_SECTION = 4;
		
		// 
		public const ushort NODETYPE_ENTITY_REFERENCE = 5;
		
		// 
		public const ushort NODETYPE_ENTITY = 6;
		
		// 
		public const ushort NODETYPE_PROCESSING_INSTRUCTION = 7;
		
		// 
		public const ushort NODETYPE_COMMENT = 8;
		
		// 
		public const ushort NODETYPE_DOCUMENT = 9;
		
		// 
		public const ushort NODETYPE_DOCUMENT_TYPE = 10;
		
		// 
		public const ushort NODETYPE_DOCUMENT_FRAGMENT = 11;
		
		// 
		public const ushort NODETYPE_NOTATION = 12;
	}
}
